<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/11/22
  Time: 14:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%pageContext.setAttribute("APP_PATH", request.getContextPath());%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <meta name="description" content="Static &amp; Dynamic Tables" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <link rel="stylesheet" href="${APP_PATH }/assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="${APP_PATH }/assets/font-awesome/4.5.0/css/font-awesome.min.css" />
    <link rel="stylesheet" href="${APP_PATH}/recourse/css/font.css">
    <link rel="stylesheet" href="${APP_PATH}/recourse/css/login.css">
    <link rel="stylesheet" href="${APP_PATH}/recourse/css/xadmin.css">

    <link rel="stylesheet" href="${APP_PATH }/assets/css/fonts.googleapis.com.css" />

    <link rel="stylesheet" href="${APP_PATH }/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

    <link rel="stylesheet" href="${APP_PATH }/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="${APP_PATH }/assets/css/ace-rtl.min.css" />

    <script src="${APP_PATH }/assets/js/ace-extra.min.js"></script>
    <script src="${APP_PATH }/recourse/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${APP_PATH }/assets/js/xadmin.js"></script>
    <title>相关图片浏览</title>

</head>
<style>
    h2{
        margin:0 auto;
        text-align: center;
    }
    img {
        display: block;
        margin: 0 auto;
        float:left;
        margin-left:20px;
        margin-top:20px;
    }
</style>
<body>
<%
    SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
    String date= format.format(new Date());
%>
<h2>图片附表</h2>
<p style="text-align: center">打印人员：${admin.name}
    <a  onclick="window.print()" style="width: 125px;height:50px;">
        <i class="layui-icon layui-icon-print"></i>
    </a>
        打印时间：<%=date%>
    </p>
<table>
    <tr>
        <td>
            <p style="margin-left: 20px;">故障图片：</p>
            <div style="width:80%;margin:0 auto;">
                <c:forEach items="${problem}" var="p_list" varStatus="status">
                    <div class="img">
                        <img border="12dp" src="/mmmsimage/${p_list}" alt="暂无图片信息" style="width:25%;">
                    </div>
                </c:forEach>
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <p style="margin-left: 20px;">解决图片：</p>
            <div style="width:80%;margin:0 auto;">
                <c:forEach items="${solut}" var="s_list" varStatus="status">
                    <div class="img">
                        <img border="12dp" src="/mmmsimage/${s_list}" alt="暂无图片信息" style="width:25%">
                    </div>
                </c:forEach>
            </div>
        </td>
    </tr>
</table>
</body>
</html>

